const express = require('express');
const { question, questionDetail, questionList, questionNumbers } = require("../controllers/question");
const {auth} = require("../middleware/auth");
const {admin} = require("../middleware/admin");
const router = express.Router();

router.post('/', admin, question)

router.get('/page:num', auth, questionList)

router.get('/numbers', questionNumbers)

router.get('/:id', auth, questionDetail)



module.exports = router